﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="ListMembers.aspx.cs" Inherits="Admin_ListMembers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="ucMyBreadcrumb_divBreadscrumb" class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <h3 class="page-title">
                <span id="ucMyBreadcrumb_lblTitleMain">Quản lý thành viên</span> <small><span id="ucMyBreadcrumb_lblTitleSub">Danh sách người dùng</span></small></h3>
            <ul class="breadcrumb">
                
                        <li><a  title="Trang chủ"><i class="icon-home"></i></a><span class="divider">&nbsp;</span></li>
                    
                        <li><a  title="Quản lý thành viên">Quản lý thành viên</a><span class="divider">&nbsp;</span></li>
                    
                        <li><a  title="Danh sách người dùng">Danh sách người dùng</a><span class="divider-last">&nbsp;</span></li>
                    
                
            </ul>
        </div>
    </div>
</div>
<div class="container-fluid">
    <!--Data Grid-->
    <div class="row-fluid  form-horizontal">
        <div class="span12">
            <div class="widget">
                <div class="widget-title">
                    <h4>
                        <i class="icon-group"></i> Danh sách người dùng</h4>
                    <span class="tools"><a href="javascript:;" class="icon-chevron-down"></a><a href="javascript:;"
                        class="icon-remove"></a></span>
                </div>
                <div class="widget-body form">
                    <asp:Literal ID="lblmsg" runat="server" Visible="False"></asp:Literal>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#C0986C"
                        HeaderText="" ValidationGroup="member" />
                    <asp:CustomValidator ID="checkValidServer" runat="server" ErrorMessage="CustomValidator"
                        Display="None" ValidationGroup="member"></asp:CustomValidator>
                    <!--Table Data-->
                    <div role="grid" class="dataTables_wrapper form-inline" id="tableMain_wrapper">
                        <table id="tableMain" class="table table-striped table-bordered dataTable table-hover table-advance"
                            aria-describedby="tableMain_info">
                            <thead>
                                <tr role="row">
                                    <th style="width:14px;" class="sorting_disabled" role="columnheader" rowspan="1"
                                        colspan="1" aria-label="">
                                        <div class="checker">
                                            <span class="">
                                                <input type="checkbox" data-set="#tableMain .checkboxes" class="group-checkable""
                                                    style="opacity: 0;">
                                            </span>
                                        </div>
                                    </th>
                                    <th class="hidden-phone sorting_asc" role="columnheader" tabindex="0" aria-controls="tableMain"
                                        rowspan="1" colspan="1" style="width:36px;" aria-sort="ascending">
                                        # <i class="icon-sort"></i>
                                    </th>
                                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="tableMain"
                                        rowspan="1" colspan="1" style="width: 143px;">
                                        Tài khoản <i class="icon-sort"></i>
                                    </th>
                                    <th class="hidden-phone sorting" role="columnheader" tabindex="0" aria-controls="tableMain"
                                        rowspan="1" colspan="1" style="width: 304px;" aria-label="Email: activate to sort column ascending">
                                        Họ tên <i class="icon-sort"></i>
                                    </th>
                                    <th class="hidden-phone sorting" role="columnheader" tabindex="0" aria-controls="tableMain"
                                        rowspan="1" colspan="1" style="width: 108px;" aria-label="Points: activate to sort column ascending">
                                        Email <i class="icon-sort"></i>
                                    </th>
                                    <th class="sorting_disabled center" role="columnheader" tabindex="0" aria-controls="tableMain"
                                        rowspan="1" colspan="1" style="width: 20px;">
                                        <i class="icon-key header-icon" title="Reset mật khẩu"></i>
                                    </th>
                                    <th class="sorting_disabled center" role="columnheader" tabindex="0" aria-controls="tableMain"
                                        rowspan="1" colspan="1" style="width: 20px;"><i class="icon-edit header-icon" title="Cập nhật"></i>
                                    </th>
                                    <th class="sorting_disabled center" role="columnheader" tabindex="0" aria-controls="tableMain"
                                        rowspan="1" colspan="1" style="width: 20px;"><i class="icon-remove header-icon" title="Xóa"></i>
                                    </th>
                                </tr>
                            </thead>
                            <tbody role="alert" aria-live="polite" aria-relevant="all">
                                <asp:Repeater ID="repMain" runat="server" OnItemCommand="repMain_ItemCommand">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <div class="checker" id="uniform-undefined">
                                                    <span>
                                                        <input type="checkbox" value="1" class="checkboxes" style="opacity: 0;" id='<%#Eval("UserName") %>'></span></div>
                                            </td>
                                            <td class="sorting_1 hidden-phone">
                                                <%# Container.ItemIndex + 1 %>
                                            </td>
                                            <td class="table-row-link">
                                                <a href="#myModal_<%# Eval("UserName") %>" data-toggle="modal"><%# Eval("UserName") %></a>
                                            </td>
                                            <td class="hidden-phone table-row-value">
                                                <%# Eval("UserName")%>
                                            </td>
                                            <td class="hidden-phone table-row-value">
                                                <a href="<%# Eval("Email") %>"><%# Eval("Email")%></a>
                                            </td>

                                            <td class="table-row-action">
                                                <asp:LinkButton ID="lnkReset" runat="server" CssClass="btn btn-warning popovers" data-content="Làm mới mật khẩu!" 
                                                    data-placement="top" data-trigger="hover" CommandName="reset" CommandArgument='<%# Eval("UserName") %>'
                                                    OnClientClick="return confirm('Bạn xác nhận sẽ làm mới mật khẩu tài khoản này ?')"><i class="icon-key"></i></asp:LinkButton>
                                            </td>
                                            
                                            <td class="table-row-action">
                                                <asp:LinkButton ID="lnkEdit" runat="server" CssClass="btn btn-success popovers" data-content="Thay đổi thông tin người dùng này!" 
                                                    data-placement="left" data-trigger="hover" CommandName="edit" CommandArgument='<%# Eval("UserName") %>' ><i class="icon-edit"></i></asp:LinkButton>
                                            </td>
                                            <td class="table-row-action">
                                                <asp:LinkButton ID="lnkDelete" runat="server" CssClass="btn btn-danger popovers" data-content="Xóa người dùng này!"
                                                    data-placement="left" data-trigger="hover" CommandName="delete" CommandArgument='<%# Eval("UserName") %>'
                                                    OnClientClick="return confirm('Bạn xác nhận sẽ xóa tài khoản này ?')" ><i class="icon-remove"></i></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</asp:Content>

